<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "bus_beautycard_memory".
 *
 * @property string $id
 * @property string $beautycard_id
 * @property string $beauty_card
 * @property string $member_id
 * @property string $total_count
 * @property string $available_count
 */
class BusBeautycardMemory extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'bus_beautycard_memory';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['beautycard_id', 'beauty_card', 'member_id'], 'required'],
            [['beautycard_id', 'member_id', 'total_count', 'available_count', 'total_price'], 'integer'],
            [['beauty_card'], 'string', 'max' => 50]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'beautycard_id' => '卡项id',
            'beauty_card' => '疗程卡名称',
            'member_id' => '会员id',
            'total_count' => '总次数',
            'available_count' => '可用次数',
            'total_price' => '卡项总金额',
        ];
    }
}
